cmake_minimum_required(VERSION 3.14)

project(qt6xlsx LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(SRC_DIR src)
set(EXAMPLES_DIR examples/xlsx)

add_subdirectory(${SRC_DIR}/xlsx)
add_subdirectory(${EXAMPLES_DIR}/calendar)
add_subdirectory(${EXAMPLES_DIR}/chart)
add_subdirectory(${EXAMPLES_DIR}/chartsheet)
add_subdirectory(${EXAMPLES_DIR}/conditionalformatting)
add_subdirectory(${EXAMPLES_DIR}/datavalidation)
add_subdirectory(${EXAMPLES_DIR}/definename)
add_subdirectory(${EXAMPLES_DIR}/demo)
add_subdirectory(${EXAMPLES_DIR}/documentproperty)
add_subdirectory(${EXAMPLES_DIR}/extractdata)
add_subdirectory(${EXAMPLES_DIR}/formulas)
add_subdirectory(${EXAMPLES_DIR}/hello)
add_subdirectory(${EXAMPLES_DIR}/hyperlinks)
add_subdirectory(${EXAMPLES_DIR}/image)
add_subdirectory(${EXAMPLES_DIR}/mergecells)
add_subdirectory(${EXAMPLES_DIR}/numberformat)
add_subdirectory(${EXAMPLES_DIR}/richtext)
add_subdirectory(${EXAMPLES_DIR}/rowcolumn)
add_subdirectory(${EXAMPLES_DIR}/style)
add_subdirectory(${EXAMPLES_DIR}/worksheetoperations)
add_subdirectory(${EXAMPLES_DIR}/xlsxwidget)


